package com.hm.ipay.domain.result;

import java.util.List;

public class ResponseDataList extends Response {
    private DataList data;

    public ResponseDataList(Integer limit, Integer offset, Integer total, List content) {
        this.data = new DataList(limit, offset, total, content);
    }

    public ResponseDataList(ExceptionMsg msg) {
        super(msg);
    }

    public ResponseDataList(String rspCode, String rspMsg) {
        super(rspCode, rspMsg);
    }

    public ResponseDataList(String rspCode, String rspMsg, Integer limit, Integer offset, Integer total, List content) {
        super(rspCode, rspMsg);
        this.data = new DataList(limit, offset, total, content);
    }

    public ResponseDataList(ExceptionMsg msg, Integer limit, Integer offset, Integer total, List content) {
        super(msg);
        this.data = new DataList(limit, offset, total, content);
    }

    public DataList getData() {
        return data;
    }

    public void setData(Integer limit, Integer offset, Integer total, List content) {
        this.data = new DataList(limit, offset, total, content);
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "data=" + data +
                "} " + super.toString();
    }
}
